﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="JumbotCms.Modules.Article.CollectItem._edit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>采集项目管理</title>
<script type="text/javascript" src="../../../_data/SysConfig.js"></script>
<script type="text/javascript" src="../../../_libs/jquery-min.js"></script>
<script type="text/javascript" src="../../../scripts/jumbotcms.js?v4"></script>
<link type="text/css" rel="stylesheet" href="../../../style/global.css" />
<link type="text/css" rel="stylesheet" href="../../../admin/otherpage/styles/common.css" />
<link type="text/css" rel="stylesheet" href="../../../_libs/jquery.formvalidator/style.css" />
<script src="../../../_libs/jquery.formvalidator.js" type="text/javascript"></script>
<script type="text/javascript">
var ccid = joinValue('ccid');
$(document).ready(function(){
	$.formValidator.initConfig({onError:function(msg){}});
	$("#txtTitle").formValidator({tipid:"tipTitle",onshow:"请输入标题，单引号之类的将自动过滤",onfocus:"至少输入6个字符",oncorrect:""}).InputValidator({min:6,onerror:"至少输入6个字符,请确认"})
		.AjaxValidator({
		type : "get",
		data:		"id=<%=id%>" + ccid,
		url:		"ajax.aspx?oper=checkname&time="+(new Date().getTime()),
		datatype : "json",
		success : function(d){	
			if(d.result == "1")
				return true;
			else
				return false;
		},
		buttons: $("#btnSave"),
		error: function(){alert("服务器没有返回数据，可能服务器忙，请重试");},
		onerror : "该标题已经存在",
		onwait : "正在校验标题的合法性，请稍候..."
	}).DefaultPassed();
	$("#txtTopNum").formValidator({tipid:"tipTopNum",onshow:"请填写数字",onfocus:"0为无限制",oncorrect:""}).RegexValidator({regexp:"^\([0-9]+)$",onerror:"请填写数字"});

});
    </script>
</head>
<body>
<form id="form1" runat="server" onsubmit="return jQuery.formValidator.PageIsValid('1')">
	<table class="formtable">
		<tr>
			<th> 项目名称 </th>
			<td><asp:TextBox ID="txtTitle" runat="server" MaxLength="150" Width="97%" CssClass="ipt"></asp:TextBox>
				<div class="ValidatorTip" id="tipTitle" style="width: 250px"></div></td>
		</tr>
		<tr>
			<th> 所属栏目 </th>
			<td><asp:DropDownList ID="ddlClassId" runat="server"> </asp:DropDownList>
			</td>
		</tr>
		<tr>
			<th> 来源网站名称 </th>
			<td><asp:TextBox ID="txtWebName" runat="server" CssClass="ipt"></asp:TextBox>
			</td>
		</tr>
		<tr>
			<th> 来源网站地址 </th>
			<td><asp:TextBox ID="txtWebUrl" runat="server" Width="97%" CssClass="ipt"></asp:TextBox>
			</td>
		</tr>
		<tr>
			<th> 项目说明 </th>
			<td><asp:TextBox ID="txtItemDemo" runat="server" Height="66px" TextMode="MultiLine" Width="97%"
                    CssClass="ipt"></asp:TextBox>
			</td>
		</tr>
		<tr>
			<th> 作者设置 </th>
			<td><asp:TextBox ID="txtAuthor" runat="server" CssClass="ipt">佚名</asp:TextBox>
			</td>
		</tr>
		<tr>
			<th> 默认来源设置 </th>
			<td><asp:TextBox ID="txtSourceFrom" runat="server" CssClass="ipt"></asp:TextBox>
			</td>
		</tr>
		<tr>
			<th> 过滤标签 </th>
			<td><asp:CheckBox ID="chkIframe" runat="server" Height="24px" Text=" Iframe" Width="72px" />
				&nbsp;
				<asp:CheckBox
                    ID="chkObject" runat="server" Height="24px" Text=" Object" Width="72px" />
				<asp:CheckBox ID="chkScript" runat="server" Height="24px" Text=" Script" Width="72px" />
				<asp:CheckBox ID="chkDiv" runat="server" Height="24px" Text=" Div" Width="72px" />
				<asp:CheckBox ID="chkTable" runat="server" Height="24px" Text=" Table" Width="72px" />
				<br />
				<asp:CheckBox ID="chkSpan" runat="server" Height="24px" Text=" Span" Width="72px" />
				<asp:CheckBox ID="chkImg" runat="server" Height="24px" Text=" Img" Width="72px" />
				<asp:CheckBox ID="chkFont" runat="server" Height="24px" Text=" Font" Width="72px" />
				<asp:CheckBox ID="chkA" runat="server" Height="24px" Text=" A" Width="72px" />
				<asp:CheckBox ID="chkHtml" runat="server" Height="24px" Text=" Html" Width="72px" />
			</td>
		</tr>
		<tr>
			<th> 采集数量 </th>
			<td><asp:TextBox ID="txtTopNum" runat="server" Width="20px" CssClass="ipt">0</asp:TextBox>
				<div class="ValidatorTip" id="tipTopNum" style="width: 250px"></div></td>
		</tr>
		<tr>
			<th> 其它选项 </th>
			<td><asp:CheckBox ID="chkSaveImg" runat="server" Text="保存图片" />
				<asp:CheckBox ID="chkIsDesc" runat="server" Text="倒序采集" />
			</td>
		</tr>
	</table>
	<div class="buttonok">
		<asp:Button ID="btnSave" runat="server" Text="确定" CssClass="btnsubmit" OnClick="btnSave_Click" />
		<input id="btnReset" type="button" value="取消" class="btncancel" onclick="parent.JumbotCms.Popup.hide();" />
	</div>
</form>
<script>jcms$$SetDialogTitle();</script>
</body>
</html>
